import java.util.Scanner;

public class Main5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        sc.close();
        int [][]arr=new int[n][n];

        for (int i=0;i<n;i++) {
            for (int j = 0; j <= n; j++) {
                if (j == 0 || j == i) {
                    arr[i][j] = 1;
                } else {
                    arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
                }
            }
        }
            for (int i=0;i<n;i++){
                for (int j=0;j<=i;j++){
                    System.out.println(arr[i][j]);
                }
                System.out.println();
            }
        }

    }

